﻿using System;
using SmartSiteManagementSystem.IRepository.WorkTask;
using SmartSiteManagementSystem.Models.WorkTask;
using SmartSiteManagementSystem.Repository.DBHelper;
using System.Data;
using Dapper;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;

namespace SmartSiteManagementSystem.Repository.WorkTask
{
    public class WorkTaskInfoRepository : IWorkTaskInfoRepository
    //,IDisposable
    {
        #region dataTable
        /*
create table `material`( 
	`material_id` int(11) not null AUTO_INCREMENT primary key, 
	`material_name` varchar(50) not null ,
	`catalog_id` int not null,
	`single_weight` decimal(5,2) not null,
	`sort_order` int not null,
	`is_deleted`  bit not null default 0,
	`is_stop`  bit not null default 0,
	`descript` text null,
    `total_num`  int not null default 0,
    `last_updatetime` datetime not null default now(),
	`create_time` datetime not null default now(),
	`update_time` datetime not null default now()
    ) default charset=utf8;
         */
        #endregion
        private IDbConnection _readConn;
        private IDbConnection _writeConn;

        public bool Delete(Hashtable param)
        {
            throw new NotImplementedException();
        }

        public WorkTaskInfo Get(Hashtable param)
        {
            throw new NotImplementedException();
        }

        public int GetCount(Hashtable param)
        {
            throw new NotImplementedException();
        }

        public IList<WorkTaskInfo> GetList(Hashtable param, string orderBy, int first, int rows)
        {
            throw new NotImplementedException();
        }

        public int Insert(WorkTaskInfo obj)
        {
            throw new NotImplementedException();
        }

        public bool Update(WorkTaskInfo obj)
        {
            throw new NotImplementedException();
        }
    }
}

